const aqcs = [
  "作业人员持有电工作业操作证（监护人）",
  "在防爆场所使用的临时电源、元器件和线路达到相应的防爆等级要求（监护人）",
  "上级开关已断电、加锁，并挂安全警示标牌（监护人）",
  "临时用电的单相和混用线路要求按照TN-S三相五线制方式接线（监护人）",
  "临时用电线路如沿墙面或地面敷设，已沿建筑物墙）根部敷设，穿越道路或其他易受机械损伤的区域，已采取防机械损伤的措施；在电缆敷设路径附近，已采取防止火花损伤电缆的措施（监护人）",
  "临时用电线路架空进线不应采用裸线（监护人）",
  "临时用电设施已装配漏电保护器，移动工具、手持工具已采取防漏电的安全措施（一机一闸一保护）（监护人）",
  "临时用电线路如加高敷设，在作业现场敷设高度应不低于2.5m，跨越道路高度应不低于5m（监护人）",
  "暗管埋设及地下电缆线路设时，已备好“走向标志”和“安全标志”，电缆埋深大于0.7m（监护人）",
  "现场临时用配电盘、箱有防雨措施，并可靠接地（监护人）",
  "用电设备、线路容量、负荷符合要求（监护人）",
  "其他相关特殊作业已办理相应安全作业票（监护人）",
  "作业场所已进行气体检测且符合作业安全要求（监护人）",
];

let formOptions = [
  {
    label: "作业申请部门",
    optionItems: [],
    prop: "jobApplyCompany",
    type: "input",
    required: true,
  },
  {
    label: "申请人",
    optionItems: [],
    prop: "sqr",
    type: "input",
    required: true,
  },

  {
    label: "作业地点",
    optionItems: [],
    prop: "local",
    type: "input",
    required: true,
  },
  {
    label: "作业内容",
    optionItems: [],
    prop: "zynr",
    type: "input",
    required: true,
  },
  {
    label: "作业申请时间",
    optionItems: [],
    prop: "jobApplyDate",
    type: "datetime",
    required: true,
  },
  {
    label: "作业实施时间",
    optionItems: [],
    prop: "jobDate",
    type: "newdatetimerange",
    required: true,
    hours: 360,
  },
  {
    // label: "电源接入点及许可用电功率（KW）",
    label: "电源接入点",
    optionItems: [],
    // prop: "dyjrdjxkydgl",
    prop: "dyjrd",
    type: "input",
    required: true,
  },
  {
    label: "许可用电功率（KW）",
    optionItems: [],
    // prop: "dyjrdjxkydgl",
    prop: "xkydgl",
    type: "input",
    hz: "KW",
    required: true,
  },
  {
    label: "工作电压",
    optionItems: [
      {
        value: "24V",
        text: "24V",
      },
      {
        value: "38V",
        text: "38V",
      },
      {
        value: "220V",
        text: "220V",
      },
      {
        value: "380V",
        text: "380V",
      },
      {
        value: "500V",
        text: "500V",
      },
      {
        value: "1KV",
        text: "1KV",
      },
    ],
    prop: "gzdy",
    type: "select",
    required: true,
  },
  {
    // label: "用电设备名称及额定功率（KW）",
    label: "用电设备名称",
    optionItems: [
      "电焊",
      "气割(焊)",
      "电砂轮",
      "电钻",
      "喷灯",
      "充电式电钻",
      "充电式电锤",
      "充电式角磨机",
      "等离子切割机",
      "割草机",
    ],
    prop: "edgl",
    type: "combox",
  },
  {
    label: "额定功率（KW）",
    optionItems: [],
    prop: "ydmc",
    // prop: "yhsbjgl",
    type: "input",
    hz: "KW",
  },
  {
    label: "用电场所及用途",
    optionItems: [],
    prop: "yhcs",
    type: "input",
  },
  {
    label: "监护人",
    optionItems: [],
    prop: "jhr",
    type: "zyry",
    required: true,
  },
  {
    label: "作业人",
    optionItems: [],
    prop: "zyr",
    type: "zyry",
    required: true,
    bh: "dgzh1",
  },
  {
    label: "电工证号",
    optionItems: [],
    prop: "dgzh1",
    type: "zsbh",
    pProp: "zyr",
    required: true,
  },
  {
    label: "用电人",
    optionItems: [],
    prop: "ydr",
    type: "zyry",
    required: true,
  },
  {
    label: "作业负责人",
    optionItems: [],
    prop: "zyfzr",
    type: "zyry",
    required: true,
    bh: "dgzh2",
  },
  {
    label: "电工证号",
    optionItems: [],
    prop: "dgzh2",
    type: "zsbh",
    pProp: "zyfzr",
    required: true,
  },
  {
    label: "关联的其他特殊作业及安全作业票编号：",
    optionItems: [],
    prop: "glqtzyp",
    type: "glzyp",
    required: false,
  },

  {
    label: "风险辨识结果",
    optionItems: [
      {
        value: "物体打击",
        text: "物体打击",
      },
      {
        value: "机械伤害",
        text: "机械伤害",
      },
      {
        value: "起重伤害",
        text: "起重伤害",
      },
      {
        value: "触电",
        text: "触电",
      },
      {
        value: "火灾",
        text: "火灾",
      },
      {
        value: "高处坠落",
        text: "高处坠落",
      },
      {
        value: "坍塌",
        text: "坍塌",
      },

      {
        value: "灼烫",
        text: "灼烫",
      },
      {
        value: "容器爆炸",
        text: "容器爆炸",
      },
      {
        value: "其他爆炸",
        text: "其他爆炸",
      },
      {
        value: "中毒窒息",
        text: "中毒窒息",
      },
      {
        value: "电磁辐射",
        text: "电磁辐射",
      },
      {
        value: "其他风险",
        text: "其他风险",
      },
    ],
    prop: "risk",
    type: "checkbox",
    required: false,
  },
];
aqcs.forEach((item, index) => {
  formOptions.push({
    label: `${index + 1}.${item}`,
    optionItems: [
      {
        value: "是",
        text: "涉及",
      },
      {
        value: "否",
        text: "不涉及",
      },
    ],
    prop: `yesOrNo${index + 1}`,
    type: "labelradio",
    required: false,
  });
  // formOptions.push({
  //   label: "电子签名",
  //   optionItems: [],
  //   type: "slot",
  //   // prop: `qianming${index + 1}`,
  //   prop: `qianming1`,
  // });
});
formOptions = [
  ...formOptions,
  {
    label: "其他安全措施",
    optionItems: [],
    prop: "qtaqcs",
    type: "qtaqcs",
    multiple: true,
  },
  {
    label: "编制人",
    optionItems: [],
    prop: "bzr",
    type: "input",
    required: false,
  },
  {
    label: "安全措施电子签名",
    optionItems: [],
    prop: "qianming1",
    type: "slot",
    required: false,
  },
  {
    label: "安全交底人",
    optionItems: [],
    prop: "aqjdr",
    type: "slot",
    required: false,
  },
  {
    label: "接受交底人",
    optionItems: [],
    prop: "jsjdr",
    type: "slot",
    required: false,
  },
  // {
  //   label: "",
  //   optionItems: [],
  //   prop: "jsjdr2",
  //   type: "slot",
  //   required: false,
  // },
  // {
  //   label: "",
  //   optionItems: [],
  //   prop: "jsjdr3",
  //   type: "slot",
  //   required: false,
  // },
];
const yjList = [
  "作业负责人意见",
  "用电单位意见（签名）",
  "配送电（作业单位）意见（签名）：",
  "安保部审批意见（签名）： ",
  "完工验收（专业人员）",
];
yjList.forEach((item, index) => {
  let qianzhi = index === 0 ? null : "qianmingDt" + index;
  if (index === 4) {
    qianzhi = ["yjqm4", "qianming1", "aqjdr"];
  }
  formOptions.push({
    label: item,
    optionItems: [],
    type: "slot",
    prop: `yjqm` + (index + 1),
    qmDt: "qianmingDt" + (index + 1),
    qianzhi,
  });
  formOptions.push({
    label: "签名日期",
    optionItems: [],
    prop: "qianmingDt" + (index + 1),
    type: "datetime",
    required: false,
  });
});
const longLabelSlots = [
  "yesOrNo1",
  "yesOrNo2",
  "yesOrNo3",
  "yesOrNo4",
  "yesOrNo5",
  "yesOrNo6",
  "yesOrNo7",
  "yesOrNo8",
  "yesOrNo9",
  "yesOrNo10",
  "yesOrNo11",
  "yesOrNo12",
  "yesOrNo13",
  "yesOrNo14",
  "yesOrNo15",
];
const qianmingSlots = [
  "qianming1",
  "qianming2",
  "qianming3",
  "qianming4",
  "qianming5",
  "qianming6",
  "qianming7",
  "qianming8",
  "qianming9",
  "qianming10",
  "qianming11",
  "qianming12",
  "qianming13",
  "qianming14",
  "qianming15",
  "qianming16",
  "qianming17",
  "qianming18",
  "qianming19",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "yjqm5",
  "yjqm6",
  "yjqm7",
  "yjqm8",
  "aqjdr",
  "jsjdr",
  "jsjdr2",
  "jsjdr3",
  "bmjhr",
  "fhjhr",
  "otherqm",
];
const emptys = [
  "qianming1",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "yjqm5",
  "qianmingDt1",
  "qianmingDt2",
  "qianmingDt3",
  "qianmingDt4",
  "qianmingDt5",
  "aqjdr",
  "jsjdr",
  "jsjdr2",
  "jsjdr3",
  "bmjhr",
  "fhjhr",
  "otherqm",
  "jobApplyDate",
  "jobDate",
  "glqtzyp",
];
const options = {
  formOptions,
  longLabelSlots,
  qianmingSlots,
  emptys,
};
export default options;
